import router from "@/router/index.js";

export default function childrenEmit(state, prev) {
  console.log("[onGlobalStateChange - master]:", state, prev);
  let { isLogin } = state
  if (isLogin === false) {
    router.push({ path: "/login" })
  }
}
